package com.job.shuang.HomeWork0709.JichengDuotai;

/**
 * @author Liushuang
 * @version 1.0
 * @since 2022-07-09 21:27:23
 */
public class Teacher extends Person {//子类，继承->人
    protected String grade;//所教年级
    final static int firstGrade=1;
    final static int secondGrade=2;
    final static int thirdGrade=3;
    public void setGrade() {
        this.grade=grade;
    }
    public String getGrade() {
        return grade;
    }
    public Teacher(String identity,String name,String grade,int phoneNumber,String gender) {
        this.identity=identity;
        this.name=name;
        this.grade=grade;
        this.phoneNumber=phoneNumber;
        this.gender=gender;
    }
    public void plan() {
        System.out.println("我所教的年级是："+grade);
    }

}
